package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.ArrayList;
import java.util.List;

@Data
public class QueryModelDTO extends ProjectIdDTO {
    @NotBlank(message = ParamErrorConstants.NO_PROJECT_ID)
    private String projectId;

    @NotEmpty(message = ParamErrorConstants.NO_INSTANCE_IDS)
    private List<String> instanceIds = new ArrayList<>();
}
